package fun.chutianshu.eescore_full.controller;

import fun.chutianshu.eescore_full.entity.RoolBook;
import fun.chutianshu.eescore_full.service.RoolBookService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 点名册表，用来存储学生签到信息(RoolBook)表控制层
 *
 * @author makejava
 * @since 2021-04-27 20:06:38
 */
@RestController
@RequestMapping("roolBook")
public class RoolBookController {
    /**
     * 服务对象
     */
    @Resource
    private RoolBookService roolBookService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数
     */
    @GetMapping("selectOne/{id}")
    public RoolBook selectOne(@PathVariable(name="id") Long id) {
        return this.roolBookService.queryById(id);
    }

}